package de.wittekind.bjs.frontend;

import java.io.IOException;

import de.wittekind.bundesjugendspiele.basics.Config;

public class FrontendConfig extends Config {

	public FrontendConfig(String path) throws IOException {
		super(path);
	}

	public String getHost() {
		return getString("host");
	}

	public void setHost(String host) {
		setString("host", host);
	}

	public String getName() {
		return getString("name");
	}

	public void setName(String name) {
		setString("name", name);
	}

	public int getPort() {
		try {
			return getInteger("port");
		} catch (NumberFormatException e) {
			e.printStackTrace();
		}
		return 0;
	}

	public void setPort(int port) {
		setInteger("port", port);
	}
}
